package com.example.myapplication.data

/**
 * 100只优质A股股票列表
 * 涵盖各个行业龙头和核心资产
 */
object QualityStocks {
    
    data class StockInfo(
        val code: String,
        val name: String,
        val industry: String,
        val basePrice: Double
    )
    
    val list = listOf(
        // 白酒行业（10只）
        StockInfo("600519", "贵州茅台", "白酒", 1680.0),
        StockInfo("000858", "五粮液", "白酒", 175.0),
        StockInfo("600809", "山西汾酒", "白酒", 268.0),
        StockInfo("000568", "泸州老窖", "白酒", 185.0),
        StockInfo("603369", "今世缘", "白酒", 52.0),
        StockInfo("600702", "舍得酒业", "白酒", 145.0),
        StockInfo("000596", "古井贡酒", "白酒", 220.0),
        StockInfo("603589", "口子窖", "白酒", 68.0),
        StockInfo("600779", "水井坊", "白酒", 78.0),
        StockInfo("600199", "金种子酒", "白酒", 35.0),
        
        // 银行（10只）
        StockInfo("600036", "招商银行", "银行", 38.6),
        StockInfo("601166", "兴业银行", "银行", 18.5),
        StockInfo("600000", "浦发银行", "银行", 10.2),
        StockInfo("601288", "农业银行", "银行", 4.5),
        StockInfo("601398", "工商银行", "银行", 6.2),
        StockInfo("601939", "建设银行", "银行", 7.8),
        StockInfo("601328", "交通银行", "银行", 6.5),
        StockInfo("000001", "平安银行", "银行", 14.2),
        StockInfo("600016", "民生银行", "银行", 4.8),
        StockInfo("601818", "光大银行", "银行", 3.9),
        
        // 保险（5只）
        StockInfo("601318", "中国平安", "保险", 45.8),
        StockInfo("601601", "中国太保", "保险", 28.5),
        StockInfo("601628", "中国人寿", "保险", 35.2),
        StockInfo("601336", "新华保险", "保险", 42.8),
        StockInfo("601319", "中国人保", "保险", 8.5),
        
        // 新能源汽车（10只）
        StockInfo("002594", "比亚迪", "新能源汽车", 285.0),
        StockInfo("601633", "长城汽车", "新能源汽车", 28.5),
        StockInfo("600104", "上汽集团", "新能源汽车", 18.2),
        StockInfo("000625", "长安汽车", "新能源汽车", 16.8),
        StockInfo("601238", "广汽集团", "新能源汽车", 12.5),
        StockInfo("002460", "赣锋锂业", "新能源", 58.5),
        StockInfo("002466", "天齐锂业", "新能源", 68.2),
        StockInfo("603799", "华友钴业", "新能源", 38.5),
        StockInfo("002812", "恩捷股份", "新能源", 68.5),
        StockInfo("300750", "宁德时代", "电池", 168.5),
        
        // 医药（10只）
        StockInfo("603259", "药明康德", "医药", 68.9),
        StockInfo("300015", "爱尔眼科", "医药", 18.5),
        StockInfo("600276", "恒瑞医药", "医药", 48.5),
        StockInfo("000661", "长春高新", "医药", 152.0),
        StockInfo("300142", "沃森生物", "医药", 28.5),
        StockInfo("300347", "泰格医药", "医药", 68.5),
        StockInfo("002422", "科伦药业", "医药", 25.8),
        StockInfo("600521", "华海药业", "医药", 22.5),
        StockInfo("002821", "凯莱英", "医药", 185.0),
        StockInfo("603882", "金域医学", "医药", 58.5),
        
        // 科技（15只）
        StockInfo("600570", "恒生电子", "金融科技", 28.5),
        StockInfo("002415", "海康威视", "安防", 38.5),
        StockInfo("603986", "兆易创新", "芯片", 128.0),
        StockInfo("688981", "中芯国际", "芯片", 48.5),
        StockInfo("002230", "科大讯飞", "人工智能", 58.5),
        StockInfo("300059", "东方财富", "互联网金融", 18.5),
        StockInfo("002475", "立讯精密", "电子", 38.5),
        StockInfo("300088", "长信科技", "电子", 8.5),
        StockInfo("002241", "歌尔股份", "电子", 28.5),
        StockInfo("600763", "通策医疗", "医疗服务", 168.0),
        StockInfo("300124", "汇川技术", "工业自动化", 68.5),
        StockInfo("002371", "北方华创", "半导体设备", 268.0),
        StockInfo("688012", "中微公司", "半导体设备", 158.0),
        StockInfo("300014", "亿纬锂能", "电池", 48.5),
        StockInfo("002049", "紫光国微", "芯片", 138.0),
        
        // 消费（10只）
        StockInfo("000651", "格力电器", "家电", 36.2),
        StockInfo("000333", "美的集团", "家电", 68.5),
        StockInfo("600690", "海尔智家", "家电", 28.5),
        StockInfo("603288", "海天味业", "调味品", 48.5),
        StockInfo("600887", "伊利股份", "乳制品", 32.5),
        StockInfo("000895", "双汇发展", "肉制品", 28.5),
        StockInfo("603288", "海天味业", "调味品", 48.5),
        StockInfo("600132", "重庆啤酒", "啤酒", 88.5),
        StockInfo("600600", "青岛啤酒", "啤酒", 98.5),
        StockInfo("601888", "中国中免", "零售", 92.3),
        
        // 地产（5只）
        StockInfo("000002", "万科A", "地产", 12.5),
        StockInfo("600048", "保利发展", "地产", 14.8),
        StockInfo("001979", "招商蛇口", "地产", 11.2),
        StockInfo("600383", "金地集团", "地产", 10.5),
        StockInfo("001979", "招商蛇口", "地产", 11.2),
        
        // 化工（10只）
        StockInfo("600309", "万华化学", "化工", 98.5),
        StockInfo("002648", "卫星石化", "化工", 28.5),
        StockInfo("600426", "华鲁恒升", "化工", 32.5),
        StockInfo("002601", "龙佰集团", "化工", 18.5),
        StockInfo("002539", "云图控股", "化工", 12.8),
        StockInfo("600256", "广汇能源", "能源", 8.5),
        StockInfo("002507", "涪陵榨菜", "食品", 28.5),
        StockInfo("603345", "安井食品", "食品", 138.0),
        StockInfo("603589", "口子窖", "白酒", 68.0),
        StockInfo("600315", "上海家化", "日化", 38.5),
        
        // 建材（5只）
        StockInfo("600585", "海螺水泥", "建材", 38.5),
        StockInfo("000877", "天山股份", "建材", 18.5),
        StockInfo("002372", "伟星新材", "建材", 18.5),
        StockInfo("603993", "洛阳钼业", "有色", 5.8),
        StockInfo("600219", "南山铝业", "有色", 3.8),
        
        // 军工（10只）
        StockInfo("600893", "航发动力", "军工", 58.5),
        StockInfo("002179", "中航光电", "军工", 68.5),
        StockInfo("600118", "中国卫星", "军工", 38.5),
        StockInfo("000768", "中航西飞", "军工", 28.5),
        StockInfo("002013", "中航机电", "军工", 12.8),
        StockInfo("600760", "中航沈飞", "军工", 48.5),
        StockInfo("002190", "成飞集成", "军工", 28.5),
        StockInfo("600855", "航天长峰", "军工", 18.5),
        StockInfo("600271", "航天信息", "军工", 22.5),
        StockInfo("002025", "航天电器", "军工", 68.5)
    )
    
    /**
     * 获取股票基础价格
     */
    fun getBasePrice(code: String): Double {
        return list.find { it.code == code }?.basePrice ?: 50.0
    }
    
    /**
     * 获取股票名称
     */
    fun getName(code: String): String {
        return list.find { it.code == code }?.name ?: "未知股票"
    }
    
    /**
     * 获取股票行业
     */
    fun getIndustry(code: String): String {
        return list.find { it.code == code }?.industry ?: "其他"
    }
}



